package com.ailink.design.pattern.singleton;

/**
 * Created by Administrator on 2018/9/19
 */
public class Test {
    public static void main(String[] args) {
//        Thread t1 = new Thread(new T());
//        Thread t2 = new Thread(new T());
//        t1.start();
//        t2.start();
//        System.out.println("end");
//        EnumSingleton enumSingleton = EnumSingleton.getInstance();
        System.out.println(HungrySingleton.getInstance());
        System.out.println(HungrySingleton.getInstance());
    }
}
